/**
 * Created by ibm on 2015/8/30.
 */
if(dev) {
    console.info('加载', 'authorpapers/template.js');
}
var source='<%for( i = 0; i < dataArray.length; i++) {%>'+
    '<div class="thesisItem">' +
    '<div class="thesisInfo">' +
    '<p class="title">' +
    '<a href="javascript:void(0);" onclick="detail(<%=dataArray[i].id%>);"><%=dataArray[i].title%></a>' +
    '</p>' +
    '<p class="author">' +
    '<%if(dataArray[i].authors!=null){%>'+
    '<%for( j=0;j<dataArray[i].authors.length;j++){%>'+
    '<span><a href="javascript:void(0);" onclick="authorsPapers(\'<%=dataArray[i].authors[j]%>\');"><%=dataArray[i].authors[j]%></a></span>' +
        '<%if(j!=(dataArray[i].authors.length-1)){%>'+
        '<em>·</em>'+
        '<%}%>'+
    '<%}%>'+
    '<%}%>'+
    '</p>' +
    '</div>' +
    '<span class="time" id="time<%=dataArray[i].id%>"><script type="text/javascript">$.PIF_dateDiffFormat.getYearAndMonthAdd8Hour("<%=dataArray[i].publishedTime%>","time<%=dataArray[i].id%>")</script>'+'</span>' +
    '<div class="abstract">' +
    '<h2 class="title">Abstract</h2>' +
    '<p class="abstract-content"><%=dataArray[i].summary%></p>' +
    '</div>' +
    '<div class="operate">' +
    '<a class="starnum" href="javascript:void(0);" id="starnum<%=dataArray[i].id%>" onclick="addfavorite(<%=dataArray[i].id%>);"><script type="text/javascript">countfavorite(<%=dataArray[i].id%>)</script></a>' +
    '<a class="commentnum" href="javascript:void(0);" id="commentnum<%=dataArray[i].id%>" onclick="showcomment(<%=dataArray[i].id%>);"><script type="text/javascript">countcomment(<%=dataArray[i].id%>)</script></a>' +
    '<a class="downloadnum"  href="javascript:void(0);" id="downloadnum<%=dataArray[i].id%>" onclick="adddownload(<%=dataArray[i].id%>,\'<%=dataArray[i].downloadUrl%>\');"><script type="text/javascript">countdownload(<%=dataArray[i].id%>)</script></a>' +
    '</div>' +
    '</div>'+
    '<%}%>';